<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>SVPO - Venda de Passagem de Onibus</title>
    </h:head>
    
   
    <h:body>
        <h:form>
        <p:panel id="panel" header="Login">  
                <h:panelGrid columns="3">  
                     <h:outputLabel for="cpf" value="CPF*"/>
                    <p:inputText id="cpf" label="cpf" required="true"  requiredMessage="Login é um campo obrigatório"
                                 value="#{administradorBean.cpf}" size="20"/>
                    <p:message for="cpf" /> 
                    <h:outputLabel for="senha" value="Senha*" />  
                    <p:inputText id="senha" label="senha" required="true" requiredMessage="Senha é um campo obrigatório"
                                 value="#{administradorBean.senha}" size="8" maxlength="8" />
                    <p:message for="senha" />  
                    <p:commandButton value="Submit" update="display" oncomplete="dialog.show()" 
                             actionListener="#{administradorBean.pesquisar()}"/> 
                    
                    
                    
                </h:panelGrid>  
            <p:button outcome="Administrador" value="Cadastrar" >  
            <f:param name="productId" value="10" />  
            </p:button> 
            </p:panel>  
            
            
            <p:dialog widgetVar="dialog" width="300" height="275" modal="true">  
        <h:panelGrid id="display" columns="2" cellpadding="5">  
      
            <h:outputText value="nome: " />  
            <h:outputText value="#{administradorBean.nome}" />  
              
            <h:outputText value="CPF: " />  
            <h:outputText value="#{administradorBean.cpf}" />  
              
            <h:outputText value="Senha: " />  
            <h:outputText value="#{administradorBean.senha}"/>  
              
            <h:outputText value="fone: " />  
            <h:outputText value="#{administradorBean.fone}" />  
              
            <h:outputText value="Data de Nascimento: " />  
            <h:outputText value="#{administradorBean.datanascimento}" />  
              
            <h:outputText value="Email: " />  
            <h:outputText value="#{administradorBean.email}" />  
            
            
            <h:outputText value="Endereço " />  
            <h:outputText value="#{administradorBean.endereco}" />  
      
        </h:panelGrid>  
    </p:dialog>  
            
            
            
       </h:form>

    </h:body>
    
    
</html>

